package com.jn.erp.web.api.student.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jn.erp.web.api.course.entity.TCourse;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("t_student_class")
public class StudentClass {
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;
//  名称
  private String name;
//  课程id
  private String courseId;
  @TableField(exist = false)
  private String courseName;
  private Long classroomId;
  private Long creator;
  private Long editor;
  private LocalDateTime addTime;
  private LocalDateTime editTime;
  private Integer deleted;
  //老师id
  private Long teacherId;
  @TableField(exist = false)
  private String teacherName;
  //备注
  private String remark;
  //0是1否
  private Long beOver;
  private LocalDateTime overTime;
  private Long overOperator;
  private LocalDateTime startDate;
  private LocalDateTime endDate;
  //预招人数
  private Long plannedStudentCount;
  private Long plannedLessonCount;
  private Long schoolId;
  private Long orgId;
  private Long gradeId;
//  是否超额
  private Integer excess;
//班级分类
  private Long classType;
  @TableField(exist = false)
  private String classTypeName;
//授课学时（默认）
  private Integer classHour;
  //是否为1对1班级
  private Integer isVip;
  //是否是补课班级
  private Integer isRepair;

  //人数
  @TableField(exist = false)
  private long studentCount;

  //人数
  @TableField(exist = false)
  private List<TCourse> courseList;
  @TableField(exist = false)
  private String open;
}
